package com.etoak.service;

import com.etoak.common.core.vo.PageVO;
import com.etoak.entity.Ingredients;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author et2406
 * @since 2024-11-18
 */
public interface IngredientsService extends IService<Ingredients> {

    /**
     * 添加食材
     *
     * @param ingredients
     */
    void add(Ingredients ingredients);

    PageVO<Ingredients> getList(int pageNum, int pageSize, Ingredients ingredients);

    /**
     * 更新食材信息
     * @param id
     * @param ingredients
     */
    void update(int id, Ingredients ingredients);


    void delete(int id);

    /**
     * 根据食材类型查询食材列表
     * @param type
     * @return
     */
    List<Ingredients> listByType(String type);
}
